import { authKey } from './Constant'

export function getAuthority() {
  return sessionStorage.getItem(authKey);
}

export function setAuthority(authority) {
  const proAuthority = typeof authority === 'string' ? authority : '';
  return sessionStorage.setItem(authKey, proAuthority);
}
